import React from 'react'
import { Navigate } from "react-router-dom"
import axios from 'axios'

export default function AuthComponent(props) {
    return (
        isAuth() ? <Navigate to='/home' /> : <Navigate to='/login' />
    )
}
function isAuth() {
    return localStorage.getItem('Authorization')
}
